﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AuditDetails.aspx.cs" Inherits="House客户端.AuditDetails" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>审核详情</title>
    <link href="easyui/easyui/1.3.4/themes/default/easyui.css" rel="stylesheet" />
    <link href="easyui/easyui/1.3.4/themes/icon.css" rel="stylesheet" />
    <link href="easyui/easyui/1.3.4/demo/demo.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table id="list">
            </table>
        </div>
    </form>
    <script src="easyui/easyui/1.3.4/jquery.min.js"></script>
    <script src="easyui/easyui/1.3.4/jquery.easyui.min.js"></script>
    <script src="jquery-easyui-1.5.2/jquery.params.js"></script>
    <script src="jquery-easyui-1.5.2/Common.js"></script>
    <script>
        $(function () {
            var ProjectNumber = $.query.get("ProjectNumber");
            $('#list').datagrid({
                singleSelect: true,
                columns: [[
                 { field: 'ProjectNumber', title: '项目号', width: 100 },
                 { field: 'Auditing_Time', title: '审核日期', width: 150, },
                 {
                     field: 'Auditing_Type', title: '审核类型', width: 100,
                     formatter: function (value, row, index) {
                         return row.Basic_State == 4 ? "初审" : row.Basic_State == 5 ? "初审" : row.Basic_State == 6 ? "终审" : row.Basic_State == 7 ? "终审" : ""
                     }
                 },
                 {
                     field: 'Auditing_State', title: '审核状态', width: 100,
                     formatter: function (value, row, index) {
                         return row.Basic_State == 4 ? "未通过" : row.Basic_State == 5 ? "通过" : row.Basic_State == 6 ? "未通过" : row.Basic_State == 7 ? "通过" : ""
                     }
                 },
                 { field: 'Auditing_People', title: '审核人', width: 100 },
                 { field: 'Auditing_Opinion', title: '审核内容', width: 100 },
                ]]
            });
            $.ajax({
                type: "get",
                url: WebApiURL + "api/Examine/GetAuditDetails/?ProjectNumber=" + ProjectNumber,
                success: function (data) {
                    data = eval(data);
                    $("#list").datagrid("loadData", data);
                }
            });
        })
    </script>
</body>
</html>
